package com.ftg.learn.bus.userole_control.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("用户表与角色表中间表")
public class userole_control {
    @TableId
    @ApiModelProperty(value = "主键")
    private String userole_id;

    @ApiModelProperty(value = "用户名")
    private String user_id;

    @ApiModelProperty(value = "角色表id")
    private String role_id;

    @ApiModelProperty(value = "角色表id用于添加多角色")
    @TableField(exist = false)
    private String[] role_ids;
}
